<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body background="pic/ManBgroud.gif">
	<div>
		<table width=100% border=1px cellpadding=0 cellspacing=0>
			<tr>
				<th>板块编号</th>
				<th>版块名称</th>
				<th>操作</th>
			</tr>
			<c:if test="${not empty boardList }">
				<c:forEach items="${boardList }" var="b">
					<tr>
						<td>${b.b_id }</td>
						<td>${b.b_name }</td>
						<td align="center"><a href="GetTopic?b_id=${b.b_id }">编辑</a>&nbsp;&nbsp;&nbsp;<a href="DeleteTopic?b_id=${b.b_id }">删除</a></td>
					</tr>
				
				</c:forEach>
			</c:if>
			<tr><td colspan="3" align="center" >
			<a href="ShowAllTopicByPage?pageIndex=1">首页</a>
			<a href="ShowAllTopicByPage?pageIndex=${sessionScope.currPage-1}">上一页</a>
			<a href="ShowAllTopicByPage?pageIndex=${sessionScope.currPage+1}">下一页</a>
			<a href="ShowAllTopicByPage?pageIndex=${sessionScope.totalPages }">尾页</a>
			</td></tr>
		
		
		</table>
	
	</div>

</body>
</html>